﻿using Function;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using UI.UserControl.Base;
using UI.UserControl.UI;
using BLL;
using Model;
using Function;

namespace UI.Module.InvestmentIncome
{
    public partial class ShopBuildMoneyDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                var model = new ST_ShopBuildMoneyDetailBLL().GetModel(Request.QueryString["entityid"].ToInt32());
                this.Label1.Text = model.PayItem;
                this.Label2.Text = model.PayMoney.ToString();
                this.Label3.Text = model.PayTime;
                div_Explan.InnerHtml = model.Explan;
                //int RecordCount = 0;
                //string Message = "";
                // DataTable Page_Dt = new DataTable();
                // Page_Dt = BLL.PageQuery2005_BLL.SelectPage(out RecordCount, "ID, ShopID, (SELECT STitle FROM dbo.ST_Shop WHERE dbo.ST_Shop.ID=ShopID) AS shopName,BuildID, (SELECT Item FROM DY_ShopBuildMoney WHERE Code=BulidItem) as itemNAME, PayItem, PayMoney, PayTime,Explan ", "[ST_ShopBuildMoneyDetail]", "ID=" + Request.QueryString["entityid"], "[ID] desc", 0, 10, PubConstant.DataBaseTarget.JHShop, out Message);
                // if (Page_Dt != null)
                // {
                //     for (int i = 0; i < Page_Dt.Rows.Count; i++)
                //     {
                //         this.Label1.Text = Page_Dt.Rows[i]["PayItem"].ToString();
                //         this.Label2.Text = Page_Dt.Rows[i]["PayMoney"].ToString();
                //         this.Label3.Text = Page_Dt.Rows[i]["PayTime"].ToString();
                //         div_Explan.InnerHtml = Page_Dt.Rows[i]["Explan"].ToString();
                //     }
                // }
            }
        }
    }
}